05. Notebook + Quiz: Fitting Logistic Regression in Python

Code

If you need a code on the https://github.com/udacity.

QUIZ QUESTION::

Match the corresponding value to the correct description.

ANSWER CHOICES:



Description

Value

The proportion of fraudulent transactions.

The average duration for fraudulent transaction.

The proportion of weekday transactions.

The average duration for non-fraudulent transactions.

SOLUTION:

Description

Value

The proportion of weekday transactions.

The average duration for fraudulent transaction.

The average duration for non-fraudulent transactions.

The proportion of fraudulent transactions.

Which variables are statistically significant for predicting fraud? Check all that apply.

SOLUTION:
  • Duration.
  • Weekday.

Advanced Question - for after you watch the next videos - Which of the following interpretations are correct with regard to your coefficients? Check all that apply.

SOLUTION:
  • On weekdays, the chance of fraud is 12.76 times more likely than on weekends holding duration constant.
  • For each minute less spent on the transaction, the chance of fraud is 4.32 times more likely holding the day of week constant.